//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop

#include "DPCnsSim.h"
#include "DPGrfSim.h"
#include "RLCnsSim.h"

//---------------------------------------------------------------------------
#pragma package( smart_init )
#pragma link "DialPad"
#pragma link "PHDS"
#pragma resource "*.dfm"
TDPCnsSim1*  DPCnsSim1;

//---------------------------------------------------------------------------
__fastcall TDPCnsSim1::TDPCnsSim1( TComponent*  Owner ) : TDiPad( Owner )
{
}

//---------------------------------------------------------------------------
void __fastcall TDPCnsSim1::BitBtn4Click( TObject*  Sender )
{
  try
   {
    DPGrfSim1 = new TDPGrfSim1( NULL );
    DPGrfSim1->ShowModal();
   }

  __finally
   {
    delete DPGrfSim1;
   }

}

//---------------------------------------------------------------------------
void __fastcall TDPCnsSim1::BitBtn3Click( TObject*  Sender )
{
  TPedeRel1*  PR;
  TRLCnsSim1*  RLCnsSim1 = new TRLCnsSim1( NULL );
  try
   {
    PR = new TPedeRel1( NULL );
    PR->Report = RLCnsSim1->PHReport1;
    PR->ShowModal();
   }

  __finally
   {
    Close();
    delete RLCnsSim1;
    delete PR;
   }

}

//---------------------------------------------------------------------------

